package com.atguigu05.method_more.args;

public class ArgsTest {
    public static void main(String[] args) {
        ArgsTest argsTest=new ArgsTest();
        argsTest.print();
        argsTest.print(1);
        argsTest.print(1,2);
    }

    public void print(int...n){
        System.out.println("111");
    }

    public void print(int i){
        System.out.println("222");
    }

    public void print(int t,int i){
        System.out.println("333");
    }

}
